<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateForumDiscussTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('forum_discuss', function (Blueprint $table) {
            $table->increments('id')->comment('标识');
            $table->integer('f_id')->default(0)->comment('关联论坛内容');
            $table->integer('user_id')->default(0)->comment('关联用户');
            $table->integer('to_user_id')->default(0)->comment('回复用户id');
            $table->integer('pid')->default(0)->comment('管理内容id');
            $table->text('content')->nullable()->comment('内容');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
